package com.example.train_operate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName tb_experiment
 */
@TableName(value ="tb_experiment")
@Data
public class Experiment implements Serializable {
    /**
     * 系统实验id
     */
    @TableId(type = IdType.AUTO)
    private Integer experimentId;

    /**
     * 记录主备状态
     */
    private Integer preparationStatus;

    /**
     * 核对计数器值和名称标记
     */
    private Integer counterLabel;

    /**
     * 检查LEU的输出自动倒换是否正常
     */
    private Integer automaticSwitching;

    /**
     * 系统图像中设备的图示状态
     */
    private Integer equipmentDiagram;

    /**
     * 设备之间连接线状态
     */
    private Integer deviceConnection;

    /**
     * 报警实时窗信息
     */
    private Integer alarmWindow;

    /**
     * 完成机柜检查时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 修改该任务时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 前一个任务id
     */
    private Integer previousTaskId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 照片url
     */
    private String photoUrl;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 任务类型
     */
    private Integer taskType;

    /**
     * 前一个任务类型
     */
    private Integer previousTaskType;


    /**
     * 正常个数
     */
    @TableField(exist = false)
    private Integer experimentNormalNum;

    /**
     * 异常个数
     */
    @TableField(exist = false)
    private Integer experimentExceptionNum;

    /**
     * 是否正常
     */
    @TableField(exist = false)
    private Integer experimentIsNormal;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}